package cn.j0n4than.accountingtool.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

/**
 * @author jonathan
 */
@TableName(value = "types", keepGlobalPrefix = true)
public class Type {

    @TableId(type = IdType.AUTO)
    public Integer id;

    @TableField("user_id")
    public Integer userId;

    @TableField("name")
    public String name;

    @TableField("style")
    public String style;

    @TableField("icon")
    public String icon;

    @TableField("created_at")
    public Date createdAt;

    @Override
    public String toString() {
        return "Type{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", style='" + style + '\'' +
                ", icon='" + icon + '\'' +
                ", createdAt=" + createdAt +
                '}';
    }
}
